
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import http from './api/request.js'
import store from './store/index.js'

import movable from '@/components/movable.vue'		//引入组件
// 路由跳转
import * as navTo from '@/util/navto.js'
Vue.prototype.$navto = navTo;
Vue.prototype.$store = store
Vue.prototype.$http = http
Vue.config.productionTip = false
Vue.component('movable',movable)						//进行全局挂载
App.mpType = 'app'
const msg = (title, duration = 2000, mask = false, icon = "none") => {
	if (Boolean(title) === false) {
		return
	}
	uni.showToast({
		title,
		duration,
		mask,
		icon
	})
}
Vue.prototype.$api = {
	msg
};
const app = new Vue({
	store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif